﻿namespace EFMLEditor
{
    using System;

    using Creek.UI.Effects;
    using Creek.UI.Metro.Forms;

    public partial class Start : MetroForm
    {
        public Start()
        {
            InitializeComponent();

            metroTile1.MouseHover += MetroTile1OnMouseHover;
            metroTile2.MouseHover += MetroTile2OnMouseHover;
        }

        private void MetroTile1OnMouseHover(object sender, EventArgs eventArgs)
        {
            var t = new Transition(new TransitionType_Flash(2, 1200));
            t.add(metroTile1, "Width", metroTile1.Width + 25);
            t.add(metroTile1, "Height", metroTile1.Height + 25);
            t.add(metroTile1, "Top", metroTile1.Top + 25);
            t.add(metroTile1, "Left", metroTile1.Left + 25);
            t.run();
        }
        private void MetroTile2OnMouseHover(object sender, EventArgs eventArgs)
        {
            var t = new Transition(new TransitionType_Flash(2, 1200));
            t.add(metroTile2, "Width", metroTile2.Width + 25);
            t.add(metroTile2, "Height", metroTile2.Height + 25);
            t.add(metroTile2, "Top", metroTile2.Top + 25);
            t.add(metroTile2, "Left", metroTile2.Left + 25);
            t.run();
        }
    }
}
